import type { JSON2SheetOpts, WritingOptions, BookType } from 'xlsx'

export interface JsonToSheet<T = any> {
  data: T[]
  header?: T
  filename?: string
  json2sheetOpts?: JSON2SheetOpts
  write2excelOpts?: WritingOptions
  xlsxName: string
}

export interface JsonToMultipleSheet<T = any> {
  datas: T[][]
  headers: T[]
  filenames: string[]
  json2sheetOpts?: JSON2SheetOpts
  write2excelOpts?: WritingOptions
  xlsxName: string
}

export interface AoAToSheet<T = any> {
  data: T[]
  header?: T[]
  filename?: string
  write2excelOpts?: WritingOptions
}
